home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / print / 890ps.arc / READ.ME < prev   
Text File  |  1990-01-08  |  6KB  |  105 lines

  1. The following files are provided:
  2.     netware.h   - definitions for calls in netware.c
  3.     netware.c   - several of NetWare calls
  4.     pserver.c   - source code for print server version 1.0
  5.     pserver.prj - project file for print server version 1.0
  6.     pserver.exe - the executable print server version 1.0
  7.     lc890.c     - source code for print server version 2.0
  8.     lc890.prj   - project file for print server version 2.0
  9.     lc890.exe   - the executable print server version 2.0
  10.  
  11. The NEC LC-890 is a great printer - it provides PostScript services, as well
  12. as emulating the Diablo 630 and HP LaserJet+ printers.  NetWare is a great
  13. network operating system.  But *these* programs are the only way I could get
  14. NetWare to transparently drive the LC-890 in all of the available modes.
  15.  
  16. The problem is that the LC-890 apparently ignores characters while it is
  17. switching modes.  Since you can't tell NetWare's PrintDef to pause between
  18. characters, you can't use print definitions to automatically switch modes.
  19.  
  20. The source code provided is for the TopSpeed C compiler, produced by Jensen &
  21. Partners International.  I don't have the NetWare System Calls for C (and the
  22. System Calls for C probably don't (yet) support TSC), so I had to implement a
  23. few functions myself.  TSC is 100% ANSI compliant (with extensions), and I
  24. used maximum warning levels to help me detect errors during development.  If
  25. you want to use the NetWare System Calls for C, you will probably need to make
  26. changes to allow for different parameters.
  27.  
  28. There are two programs included in this package.  The first, PServer, is my
  29. first attempt at writing the print server.  The main advantage to PServer is
  30. that it is written using fairly standard library calls - porting it to any
  31. particular C compiler shouldn't be any real trouble.  The disadvantage of
  32. PServer is that it's ugly and unresponsive.  But hey, what do you want for a
  33. first attempt?
  34.  
  35. Disatisfied with PServer, I wrote LC890.  This newer version takes advantage
  36. of the time-sliced scheduler available with the TopSpeed C compiler, as well
  37. the TopSpeed windowing library.  This makes LC890 a really nifty program.  You
  38. can even leave the monitor turned on (which is useful, since LC890 will
  39. display the contents of the printer queues) - if there aren't any jobs in the
  40. queues, LC890 will blank the screen to prevent screen burn-in.  Unfortunately,
  41. you probably won't be able to port LC890 to another compiler without a major
  42. rewrite.  But if you have TopSpeed C (plug, plug (yes, I *do* work for the
  43. company that produces TopSpeed C)), then you're all set.
  44.  
  45. Of course, both programs are very small - less than 400 lines each, not
  46. counting the NetWare interface code.  With any programs this small, porting
  47. doesn't really seem like a big issue.
  48.  
  49. To use either PServer.EXE or LC890.EXE, log in as SUPERVISOR and use PConsole
  50. to do the following:
  51.     1) Create print server "LC890", with password "LC890".
  52.     2) Create queues "DIABLO630", "LASERJET", "POSTSCRIPT" and
  53.        "POSTSCRIPTINTERACTIVE".  For each of these queues:
  54.        a) Queue Servers must contain "LC890".
  55.        b) Queue Operators should contain appropriate values.
  56.        c) Queue Users should contain appropriate values.
  57. Put your LC-890 in PostScript Batch mode, hook it up as LPT1: to a (dedicated)
  58. PC which is connected to the network, load IPX and NETx, and run either
  59. program.
  60.  
  61. The program will log in as "LC890", attach itself to the four queues, and
  62. start looking for something to do.  If it finds something, it will ensure that
  63. the printer is in the appropriate mode, and print the job(s) for that mode.
  64.  
  65. If you ever want the program to stop, just hit ESCape.  If the server is
  66. currently printing a job, it will stop immediately - it *won't* finish
  67. printing the job.  Whenever you hit ESCape, the printer will be left in
  68. whatever mode the last job required.  Before you start either program again,
  69. the printer *must* be in PostScript Batch mode.  When exiting, the programs
  70. detache themselves from all of the queues, and log out.
  71.  
  72. Problems with these versions:
  73.   1) Don't print banners.
  74.   2) Don't expand tabs.
  75.   3) Don't pay any attention to the lines and columns settings in the client
  76.      data area.
  77.   4) When exiting, leaves printer in mode other than PostScript Batch.
  78.   5) LC890 also attempts to display (but not print) jobs in "LABELS" and
  79.      LABELS_2".  This (hopefully) causes no harm - when the program detects
  80.      that the queues don't exist, it avoids doing anything.  (We have printers
  81.      attached to these two queues for printing mailing labels - it's nice to
  82.      have LC890 display their queue contents as well.)
  83.   6) LC890 has basic hooks for driving async ports and printer ports other
  84.      than LPT1, but this is not yet implemented.
  85.   7) LC890 should be restructured to provide services for multiple multi-mode
  86.      printers.  Someday.
  87.   8) LC890 is simplistic in its window placement and sizing - displaying more
  88.      than 6 queues will probably require windows to be dynmically moved and
  89.      resized.
  90.  
  91. This program is released into the public domain, with no warranties
  92. whatsoever.  Non-buyers beware!  If you discover bugs, or make significant
  93. enhancements, please let me know.
  94.  
  95.  
  96.   Don Dumitru
  97.   Jensen & Partners, International
  98.   1101 San Antonio Road, Suite 301
  99.   Mountain View, CA  94043
  100.     (415) 967-3200 [voice]
  101.     (415) 967-3288 [fax]
  102.     (415) 967-7241 [bbs]
  103.   'dondumitru' [Bix]
  104.   '73577,2524' [CompuServe]
  105.